package com.lin.start;

import com.lin.start.autoconfiguration.FormatProperties;
import com.lin.start.format.Format;


public class FormatTemplate {
    private Format format;

    private FormatProperties formatProperties;

    public FormatTemplate(FormatProperties formatProperties,Format format) {
        this.formatProperties = formatProperties;
        this.format = format;
    }

    public <T> String doFormat(T t){
         return format.process(t)+"Properties: "+formatProperties.getProperties();
    }
}
